<!DOCTYPE html>

#set(title="登录")
#@layout()

#define body()
<div class="layui-main" style="text-align: center;margin-top: 50px;">
    <form class="layui-form" action="/login" method="post">
        <div class="layui-form-item">
            <div class="layui-form-inline">
                <input type="text" name="username" placeholder="请输入用户名" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-form-inline">
                <input type="password" name="password" placeholder="请输入密码" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" id="catpcha-div">
            <input type="text" placeholder="请输入验证码" name="captcha" class="layui-input"
                   id="captcha-input">
            <img src="/login/captcha" id="captcha-img" title="点击刷新">
        </div>
        <div class="layui-form-item">
            <div>
                <button type="submit" value="Login" class="layui-btn" lay-submit lay-filter="submitLogin">log in
                </button>
                <a href="/register">sign up?</a></div>
        </div>
    </form>
</div>
#end

#define js()
<script type="text/javascript" src="/assets/js/login.js"></script>
#end

